﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Housing;

public partial class GovDepartment_Index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Apply apply = new Apply();
        //int UserTypeNum = 0;
        if (Session["UserType"] == null)
        {
            WebHelper.AlertAndRedirect("登陆超时，请重新登陆","../Login.aspx");
        }
        if (!IsPostBack)
        {
            DataSet ds = apply.GetApplyListOrderByUserTypeAndStreet(Session["UserType"].ToString(), Session["UserStreet"].ToString());
            gvstreetshow.DataSource = ds;
            gvstreetshow.DataBind();
        }
    }
}
